package com.bestescortbedsystem.entity;

import java.util.ArrayList;
import java.util.List;

public class SesHospitalinfoDepartmentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public SesHospitalinfoDepartmentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDepartmentidIsNull() {
            addCriterion("departmentId is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentidIsNotNull() {
            addCriterion("departmentId is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentidEqualTo(Long value) {
            addCriterion("departmentId =", value, "departmentid");
            return (Criteria) this;
        }

        public Criteria andDepartmentidNotEqualTo(Long value) {
            addCriterion("departmentId <>", value, "departmentid");
            return (Criteria) this;
        }

        public Criteria andDepartmentidGreaterThan(Long value) {
            addCriterion("departmentId >", value, "departmentid");
            return (Criteria) this;
        }

        public Criteria andDepartmentidGreaterThanOrEqualTo(Long value) {
            addCriterion("departmentId >=", value, "departmentid");
            return (Criteria) this;
        }

        public Criteria andDepartmentidLessThan(Long value) {
            addCriterion("departmentId <", value, "departmentid");
            return (Criteria) this;
        }

        public Criteria andDepartmentidLessThanOrEqualTo(Long value) {
            addCriterion("departmentId <=", value, "departmentid");
            return (Criteria) this;
        }

        public Criteria andDepartmentidIn(List<Long> values) {
            addCriterion("departmentId in", values, "departmentid");
            return (Criteria) this;
        }

        public Criteria andDepartmentidNotIn(List<Long> values) {
            addCriterion("departmentId not in", values, "departmentid");
            return (Criteria) this;
        }

        public Criteria andDepartmentidBetween(Long value1, Long value2) {
            addCriterion("departmentId between", value1, value2, "departmentid");
            return (Criteria) this;
        }

        public Criteria andDepartmentidNotBetween(Long value1, Long value2) {
            addCriterion("departmentId not between", value1, value2, "departmentid");
            return (Criteria) this;
        }

        public Criteria andDepartmentnameIsNull() {
            addCriterion("departmentName is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentnameIsNotNull() {
            addCriterion("departmentName is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentnameEqualTo(String value) {
            addCriterion("departmentName =", value, "departmentname");
            return (Criteria) this;
        }

        public Criteria andDepartmentnameNotEqualTo(String value) {
            addCriterion("departmentName <>", value, "departmentname");
            return (Criteria) this;
        }

        public Criteria andDepartmentnameGreaterThan(String value) {
            addCriterion("departmentName >", value, "departmentname");
            return (Criteria) this;
        }

        public Criteria andDepartmentnameGreaterThanOrEqualTo(String value) {
            addCriterion("departmentName >=", value, "departmentname");
            return (Criteria) this;
        }

        public Criteria andDepartmentnameLessThan(String value) {
            addCriterion("departmentName <", value, "departmentname");
            return (Criteria) this;
        }

        public Criteria andDepartmentnameLessThanOrEqualTo(String value) {
            addCriterion("departmentName <=", value, "departmentname");
            return (Criteria) this;
        }

        public Criteria andDepartmentnameLike(String value) {
            addCriterion("departmentName like", value, "departmentname");
            return (Criteria) this;
        }

        public Criteria andDepartmentnameNotLike(String value) {
            addCriterion("departmentName not like", value, "departmentname");
            return (Criteria) this;
        }

        public Criteria andDepartmentnameIn(List<String> values) {
            addCriterion("departmentName in", values, "departmentname");
            return (Criteria) this;
        }

        public Criteria andDepartmentnameNotIn(List<String> values) {
            addCriterion("departmentName not in", values, "departmentname");
            return (Criteria) this;
        }

        public Criteria andDepartmentnameBetween(String value1, String value2) {
            addCriterion("departmentName between", value1, value2, "departmentname");
            return (Criteria) this;
        }

        public Criteria andDepartmentnameNotBetween(String value1, String value2) {
            addCriterion("departmentName not between", value1, value2, "departmentname");
            return (Criteria) this;
        }

        public Criteria andDepartmentHospitalinfoidIsNull() {
            addCriterion("department_hospitalinfoId is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentHospitalinfoidIsNotNull() {
            addCriterion("department_hospitalinfoId is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentHospitalinfoidEqualTo(Long value) {
            addCriterion("department_hospitalinfoId =", value, "departmentHospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andDepartmentHospitalinfoidNotEqualTo(Long value) {
            addCriterion("department_hospitalinfoId <>", value, "departmentHospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andDepartmentHospitalinfoidGreaterThan(Long value) {
            addCriterion("department_hospitalinfoId >", value, "departmentHospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andDepartmentHospitalinfoidGreaterThanOrEqualTo(Long value) {
            addCriterion("department_hospitalinfoId >=", value, "departmentHospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andDepartmentHospitalinfoidLessThan(Long value) {
            addCriterion("department_hospitalinfoId <", value, "departmentHospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andDepartmentHospitalinfoidLessThanOrEqualTo(Long value) {
            addCriterion("department_hospitalinfoId <=", value, "departmentHospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andDepartmentHospitalinfoidIn(List<Long> values) {
            addCriterion("department_hospitalinfoId in", values, "departmentHospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andDepartmentHospitalinfoidNotIn(List<Long> values) {
            addCriterion("department_hospitalinfoId not in", values, "departmentHospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andDepartmentHospitalinfoidBetween(Long value1, Long value2) {
            addCriterion("department_hospitalinfoId between", value1, value2, "departmentHospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andDepartmentHospitalinfoidNotBetween(Long value1, Long value2) {
            addCriterion("department_hospitalinfoId not between", value1, value2, "departmentHospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userId is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userId is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Long value) {
            addCriterion("userId =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Long value) {
            addCriterion("userId <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Long value) {
            addCriterion("userId >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Long value) {
            addCriterion("userId >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Long value) {
            addCriterion("userId <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Long value) {
            addCriterion("userId <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Long> values) {
            addCriterion("userId in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Long> values) {
            addCriterion("userId not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Long value1, Long value2) {
            addCriterion("userId between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Long value1, Long value2) {
            addCriterion("userId not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidIsNull() {
            addCriterion("userShareholderId is null");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidIsNotNull() {
            addCriterion("userShareholderId is not null");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidEqualTo(Long value) {
            addCriterion("userShareholderId =", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidNotEqualTo(Long value) {
            addCriterion("userShareholderId <>", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidGreaterThan(Long value) {
            addCriterion("userShareholderId >", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidGreaterThanOrEqualTo(Long value) {
            addCriterion("userShareholderId >=", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidLessThan(Long value) {
            addCriterion("userShareholderId <", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidLessThanOrEqualTo(Long value) {
            addCriterion("userShareholderId <=", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidIn(List<Long> values) {
            addCriterion("userShareholderId in", values, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidNotIn(List<Long> values) {
            addCriterion("userShareholderId not in", values, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidBetween(Long value1, Long value2) {
            addCriterion("userShareholderId between", value1, value2, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidNotBetween(Long value1, Long value2) {
            addCriterion("userShareholderId not between", value1, value2, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1IsNull() {
            addCriterion("userDistributorsId1 is null");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1IsNotNull() {
            addCriterion("userDistributorsId1 is not null");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1EqualTo(Long value) {
            addCriterion("userDistributorsId1 =", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1NotEqualTo(Long value) {
            addCriterion("userDistributorsId1 <>", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1GreaterThan(Long value) {
            addCriterion("userDistributorsId1 >", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1GreaterThanOrEqualTo(Long value) {
            addCriterion("userDistributorsId1 >=", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1LessThan(Long value) {
            addCriterion("userDistributorsId1 <", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1LessThanOrEqualTo(Long value) {
            addCriterion("userDistributorsId1 <=", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1In(List<Long> values) {
            addCriterion("userDistributorsId1 in", values, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1NotIn(List<Long> values) {
            addCriterion("userDistributorsId1 not in", values, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1Between(Long value1, Long value2) {
            addCriterion("userDistributorsId1 between", value1, value2, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1NotBetween(Long value1, Long value2) {
            addCriterion("userDistributorsId1 not between", value1, value2, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2IsNull() {
            addCriterion("userDistributorsId2 is null");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2IsNotNull() {
            addCriterion("userDistributorsId2 is not null");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2EqualTo(Long value) {
            addCriterion("userDistributorsId2 =", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2NotEqualTo(Long value) {
            addCriterion("userDistributorsId2 <>", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2GreaterThan(Long value) {
            addCriterion("userDistributorsId2 >", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2GreaterThanOrEqualTo(Long value) {
            addCriterion("userDistributorsId2 >=", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2LessThan(Long value) {
            addCriterion("userDistributorsId2 <", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2LessThanOrEqualTo(Long value) {
            addCriterion("userDistributorsId2 <=", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2In(List<Long> values) {
            addCriterion("userDistributorsId2 in", values, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2NotIn(List<Long> values) {
            addCriterion("userDistributorsId2 not in", values, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2Between(Long value1, Long value2) {
            addCriterion("userDistributorsId2 between", value1, value2, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2NotBetween(Long value1, Long value2) {
            addCriterion("userDistributorsId2 not between", value1, value2, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andDepartmentcreatetimeIsNull() {
            addCriterion("departmentCreateTime is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentcreatetimeIsNotNull() {
            addCriterion("departmentCreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentcreatetimeEqualTo(String value) {
            addCriterion("departmentCreateTime =", value, "departmentcreatetime");
            return (Criteria) this;
        }

        public Criteria andDepartmentcreatetimeNotEqualTo(String value) {
            addCriterion("departmentCreateTime <>", value, "departmentcreatetime");
            return (Criteria) this;
        }

        public Criteria andDepartmentcreatetimeGreaterThan(String value) {
            addCriterion("departmentCreateTime >", value, "departmentcreatetime");
            return (Criteria) this;
        }

        public Criteria andDepartmentcreatetimeGreaterThanOrEqualTo(String value) {
            addCriterion("departmentCreateTime >=", value, "departmentcreatetime");
            return (Criteria) this;
        }

        public Criteria andDepartmentcreatetimeLessThan(String value) {
            addCriterion("departmentCreateTime <", value, "departmentcreatetime");
            return (Criteria) this;
        }

        public Criteria andDepartmentcreatetimeLessThanOrEqualTo(String value) {
            addCriterion("departmentCreateTime <=", value, "departmentcreatetime");
            return (Criteria) this;
        }

        public Criteria andDepartmentcreatetimeLike(String value) {
            addCriterion("departmentCreateTime like", value, "departmentcreatetime");
            return (Criteria) this;
        }

        public Criteria andDepartmentcreatetimeNotLike(String value) {
            addCriterion("departmentCreateTime not like", value, "departmentcreatetime");
            return (Criteria) this;
        }

        public Criteria andDepartmentcreatetimeIn(List<String> values) {
            addCriterion("departmentCreateTime in", values, "departmentcreatetime");
            return (Criteria) this;
        }

        public Criteria andDepartmentcreatetimeNotIn(List<String> values) {
            addCriterion("departmentCreateTime not in", values, "departmentcreatetime");
            return (Criteria) this;
        }

        public Criteria andDepartmentcreatetimeBetween(String value1, String value2) {
            addCriterion("departmentCreateTime between", value1, value2, "departmentcreatetime");
            return (Criteria) this;
        }

        public Criteria andDepartmentcreatetimeNotBetween(String value1, String value2) {
            addCriterion("departmentCreateTime not between", value1, value2, "departmentcreatetime");
            return (Criteria) this;
        }

        public Criteria andUseraccendantidIsNull() {
            addCriterion("userAccendantId is null");
            return (Criteria) this;
        }

        public Criteria andUseraccendantidIsNotNull() {
            addCriterion("userAccendantId is not null");
            return (Criteria) this;
        }

        public Criteria andUseraccendantidEqualTo(Long value) {
            addCriterion("userAccendantId =", value, "useraccendantid");
            return (Criteria) this;
        }

        public Criteria andUseraccendantidNotEqualTo(Long value) {
            addCriterion("userAccendantId <>", value, "useraccendantid");
            return (Criteria) this;
        }

        public Criteria andUseraccendantidGreaterThan(Long value) {
            addCriterion("userAccendantId >", value, "useraccendantid");
            return (Criteria) this;
        }

        public Criteria andUseraccendantidGreaterThanOrEqualTo(Long value) {
            addCriterion("userAccendantId >=", value, "useraccendantid");
            return (Criteria) this;
        }

        public Criteria andUseraccendantidLessThan(Long value) {
            addCriterion("userAccendantId <", value, "useraccendantid");
            return (Criteria) this;
        }

        public Criteria andUseraccendantidLessThanOrEqualTo(Long value) {
            addCriterion("userAccendantId <=", value, "useraccendantid");
            return (Criteria) this;
        }

        public Criteria andUseraccendantidIn(List<Long> values) {
            addCriterion("userAccendantId in", values, "useraccendantid");
            return (Criteria) this;
        }

        public Criteria andUseraccendantidNotIn(List<Long> values) {
            addCriterion("userAccendantId not in", values, "useraccendantid");
            return (Criteria) this;
        }

        public Criteria andUseraccendantidBetween(Long value1, Long value2) {
            addCriterion("userAccendantId between", value1, value2, "useraccendantid");
            return (Criteria) this;
        }

        public Criteria andUseraccendantidNotBetween(Long value1, Long value2) {
            addCriterion("userAccendantId not between", value1, value2, "useraccendantid");
            return (Criteria) this;
        }

        public Criteria andDepartmentsharingIsNull() {
            addCriterion("departmentSharing is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentsharingIsNotNull() {
            addCriterion("departmentSharing is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentsharingEqualTo(Float value) {
            addCriterion("departmentSharing =", value, "departmentsharing");
            return (Criteria) this;
        }

        public Criteria andDepartmentsharingNotEqualTo(Float value) {
            addCriterion("departmentSharing <>", value, "departmentsharing");
            return (Criteria) this;
        }

        public Criteria andDepartmentsharingGreaterThan(Float value) {
            addCriterion("departmentSharing >", value, "departmentsharing");
            return (Criteria) this;
        }

        public Criteria andDepartmentsharingGreaterThanOrEqualTo(Float value) {
            addCriterion("departmentSharing >=", value, "departmentsharing");
            return (Criteria) this;
        }

        public Criteria andDepartmentsharingLessThan(Float value) {
            addCriterion("departmentSharing <", value, "departmentsharing");
            return (Criteria) this;
        }

        public Criteria andDepartmentsharingLessThanOrEqualTo(Float value) {
            addCriterion("departmentSharing <=", value, "departmentsharing");
            return (Criteria) this;
        }

        public Criteria andDepartmentsharingIn(List<Float> values) {
            addCriterion("departmentSharing in", values, "departmentsharing");
            return (Criteria) this;
        }

        public Criteria andDepartmentsharingNotIn(List<Float> values) {
            addCriterion("departmentSharing not in", values, "departmentsharing");
            return (Criteria) this;
        }

        public Criteria andDepartmentsharingBetween(Float value1, Float value2) {
            addCriterion("departmentSharing between", value1, value2, "departmentsharing");
            return (Criteria) this;
        }

        public Criteria andDepartmentsharingNotBetween(Float value1, Float value2) {
            addCriterion("departmentSharing not between", value1, value2, "departmentsharing");
            return (Criteria) this;
        }

        public Criteria andDepartmentphoneIsNull() {
            addCriterion("departmentPhone is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentphoneIsNotNull() {
            addCriterion("departmentPhone is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentphoneEqualTo(String value) {
            addCriterion("departmentPhone =", value, "departmentphone");
            return (Criteria) this;
        }

        public Criteria andDepartmentphoneNotEqualTo(String value) {
            addCriterion("departmentPhone <>", value, "departmentphone");
            return (Criteria) this;
        }

        public Criteria andDepartmentphoneGreaterThan(String value) {
            addCriterion("departmentPhone >", value, "departmentphone");
            return (Criteria) this;
        }

        public Criteria andDepartmentphoneGreaterThanOrEqualTo(String value) {
            addCriterion("departmentPhone >=", value, "departmentphone");
            return (Criteria) this;
        }

        public Criteria andDepartmentphoneLessThan(String value) {
            addCriterion("departmentPhone <", value, "departmentphone");
            return (Criteria) this;
        }

        public Criteria andDepartmentphoneLessThanOrEqualTo(String value) {
            addCriterion("departmentPhone <=", value, "departmentphone");
            return (Criteria) this;
        }

        public Criteria andDepartmentphoneLike(String value) {
            addCriterion("departmentPhone like", value, "departmentphone");
            return (Criteria) this;
        }

        public Criteria andDepartmentphoneNotLike(String value) {
            addCriterion("departmentPhone not like", value, "departmentphone");
            return (Criteria) this;
        }

        public Criteria andDepartmentphoneIn(List<String> values) {
            addCriterion("departmentPhone in", values, "departmentphone");
            return (Criteria) this;
        }

        public Criteria andDepartmentphoneNotIn(List<String> values) {
            addCriterion("departmentPhone not in", values, "departmentphone");
            return (Criteria) this;
        }

        public Criteria andDepartmentphoneBetween(String value1, String value2) {
            addCriterion("departmentPhone between", value1, value2, "departmentphone");
            return (Criteria) this;
        }

        public Criteria andDepartmentphoneNotBetween(String value1, String value2) {
            addCriterion("departmentPhone not between", value1, value2, "departmentphone");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}